package org.example.work.anno;

import jakarta.validation.Constraint;
import jakarta.validation.Payload;
import org.example.work.validation.StateValidation;

import java.lang.annotation.*;


/**
 * @author lj20050120
 */
@Documented
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
@Constraint(
        validatedBy = {StateValidation.class}
)

public @interface State {
    String message() default "state参数值只能是已提交或草稿";

    Class<?>[] groups() default {};

    Class<? extends Payload>[] payload() default {};


}
